<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>小米商城右侧悬浮菜单</title>
    <link rel="stylesheet" href="iconfont/iconfont.css" />
    <style>
      body,
      ul,
      p {
        margin: 0;
        padding: 0;
      }
      body {
        background-color: #ddd;
        height: 2000px;
      }
      ul {
        list-style: none;
      }
      a {
        text-decoration: none;
        color: initial;
      }
      /*  */
      .sidebar {
        width: 85px;
        position: fixed;
        right: 20px;
        bottom: 300px;
      }
      .sidebar ul li {
        border: 1px solid skyblue;
        width: 85px;
        height: 85px;
        background-color: #fff;
      }
      .sidebar ul li:last-child {
        margin-top: 20px;
      }
      .sidebar ul li p.iconfont {
        font-size: 28px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        width: 85px;
      }
      .sidebar ul li p.font {
        font-size: 16px;
        height: 35px;
        line-height: 35px;
        font-weight: 100;
        width: 85px;
        text-align: center;
      }
      .sidebar ul li a:hover p {
        color: pink;
      }
      .sidebar ul li a div.weixin {
        height: 100px;
        width: 100px;
        background-color: #fff;
        position: absolute;
        top: 0;
        left: -130px;
        padding: 15px;
        border: 1px solid skyblue;
        display: none;
      }
      .sidebar ul li a:hover div.weixin {
        display: block;
      }
    </style>
  </head>
  <body>
    <div class="sidebar">
      <ul>
        <li>
          <a href="">
            <p class="iconfont icon-shouji"></p>
            <p class="font">手机APP</p>
            <div class="weixin">
              <img src="images/wx - 副本.png" alt="" height="100px" />
            </div>
          </a>
        </li>
        <li>
          <a href="">
            <p class="iconfont icon-gouwuche"></p>
            <p class="font">个人中心</p>
          </a>
        </li>
        <li>
          <a href="">
            <p class="iconfont icon-dingbu"></p>
            <p class="font">售后服务</p>
          </a>
        </li>
        <li>
          <a href="">
            <p class="iconfont icon-touxiang"></p>
            <p class="font">人工客服</p>
          </a>
        </li>
        <li>
          <a href="">
            <p class="iconfont icon-gongju"></p>
            <p class="font">购物车</p>
          </a>
        </li>
        <li>
          <a href="#">
            <p class="iconfont icon-kefu"></p>
            <p class="font">回到顶部</p>
          </a>
        </li>
      </ul>
    </div>
  </body>
</html>
